package org.springframework.demo;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.demo.service.HelloService;

public class App {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext("org.springframework.demo");
		HelloService helloService = context.getBean(HelloService.class);
		helloService.sayHello();
	}
}
